package com.ctl.common.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * <p>Title: Goods</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2019</p>
 * <p>Company: www.ctl.com</p>
 *
 * @author ctl
 * @version 1.1
 * @date 2023-11-14 21:57
 */
@Getter
@Setter
public class Goods {
    private String sku;
    private String itemName;
//    @JsonIgnore
    private List<String> ean;
//    @JsonIgnore
    private Integer position;
    private Long priceChangeTime;

    public Goods withSku(String sku) {
        this.sku = sku;
        return this;
    }

    public Goods withItemName(String itemName) {
        this.itemName = itemName;
        return this;
    }

    public Goods withEan(List<String> ean) {
        this.ean = ean;
        return this;
    }

    public Goods withPosition(Integer position) {
        this.position = position;
        return this;
    }

    public Goods withPriceChangeTime(Long priceChangeTime) {
        this.priceChangeTime = priceChangeTime;
        return this;
    }
}
